<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <form action="{:U('scale_update')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">商品分类</label>
            <div class="controls">
            <select name="cid">
                <option value="0" selected="">--请选择--</option>
                <volist name="_class" id="v">
                    <option value="{$v.id}" <if condition="$v['id'] eq $data['id']">selected="selected"</if>>{$v.name}</option>          
                </volist>
            </select>               
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">折扣比例</label>
            <div class="controls">
                <input type="text" class="text input-large" name="zhekou" value="{$data.zhekou|default=''}" style="width:30px;text-align:center;">%
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="id" value="{$data.id|default=0}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('GoodsClass/scale_index')}');
    </script>
</block>
